import request from "@/utils/request";

// 轮播图
export function fetchList(params) {
  return request({
    url: "/ads/index",
    method: "get",
    params
  });
}

export function getInfo(params) {
  return request({
    url: "/ads/read",
    method: "get",
    params
  });
}

export function add(data) {
  return request({
    url: "/ads/save",
    method: "post",
    data
  });
}

export function update(data) {
  return request({
    url: "/ads/update",
    method: "post",
    data
  });
}

export function remove(data) {
  return request({
    url: "/ads/delete",
    method: "post",
    data
  });
}

export function setIsShow(params) {
  return request({
    url: "/ads/set_is_show",
    method: "get",
    params
  });
}
